home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-05 / pcrte224.zip / SLIP.EXA < prev    next >
Text File  |  1992-06-09  |  13KB  |  275 lines

  1.  
  2.  
  3.                     EXAMPLE INSTALLATION OF PCROUTE
  4.                 SLIP - ETHERNET
  5.  
  6.  
  7.     Here we will do an example installation of PCroute.  The network
  8. configuration we will assume that we have is 
  9.  
  10.  
  11.  
  12.            129.105.49.X                         129.105.5.X
  13.            255.255.255.0                        255.255.255.0
  14.     /---------------------/               /--------------------------/
  15.          Thin   A      | 1    19.2K Line     | 3    Thick  B     | 5
  16.                    +---+---+ 129.105.2.X +-------+               |   +-------+
  17.                    | PC #1 +-------------+ PC #2 |               +---+  GW   |
  18.                    +-------+ 1         2 +-------+                   +-------+
  19.  
  20.  
  21.         LOG HOST 129.105.35.2
  22.  
  23.     That is we are trying to connect two ethernets together via a
  24. 19.2 KBaud async communication line.  We are using a class B number 
  25. (129.105) but we are subneting it so that the first three tuples are the 
  26. network part.   Network A was assigned the network number 129.105.49.X
  27. network B was assigned the network number 129.105.5.X and we assigned
  28. the SLIP line the network number 129.105.2.X.  The first router is given
  29. the address 129.105.49.1 on network A and 129.105.2.1 on  the SLIP line.
  30. The second router is given the address 129.105.5.3 on network B and
  31. 129.105.2.2 on the SLIP line.  Network A is thin ethernet (uses the BNC 
  32. connector) and network B is thick (uses the DSub 15 connector) There is 
  33. a gateway on network B that will be the default.  Finally their is a 
  34. UNIX host running syslogd whose IP address is 129.105.35.2 that will act 
  35. as a logging host.
  36.  
  37. I wish to stress at this time that the serial line has its OWN network
  38. number.  This is the way it should be.  PLEASE don't try to 'borrow'
  39. part of the address space of one of the ethernets.  I know that some
  40. SLIP software does this, but it causes nothing but grief.  PLEASE do
  41. not try it.
  42.  
  43. Step 1 Compiling software:
  44.         Since the distribution comes with a executable that is configured 
  45.     for a slip-ethernet router (Ether I/O address 280H, Slip COM1), it 
  46.     is not necessary to recompile the source code.   Simply rename slip.exe
  47.     to pcroute.exe, for both routers.  
  48.  
  49. Step 2 Configuring hardware
  50.     For both PCs the factory setting for the WD8003E of I/O address 
  51.     280H, and IRQ 3 (the IRQ setting is irrelevant) is fine, however,
  52.     since network B is a thick ethernet we must change the jumpers for
  53.     the WD8003E card for PC #2 so that thick ethernet is selected.
  54.     Then install the cards in the PCs.
  55.         Next we install async serial cards for both PCs that are configured
  56.     for COM1 (I/O address=3F8H, IRQ=4).
  57.  
  58. Step 3 Software configuration
  59.         Copy pcroute.exe, and config.exe to a two BOOTABLE floppies.  Create
  60.     and autoexec.bat file that has the single line 'PCROUTE' in it and
  61.     place the file on both floppies.  Insert the floppy for PC #1, set 
  62.     your default drive to the floppy and type 'CONFIG'.  
  63.     The dialog to the config program for PC #1 looks like
  64.  
  65.     ------------------------------------------------------------------------
  66.         This program creates/edits the pcroute.cfg file
  67.  
  68.         Configuring an interface
  69.         Address for the interface [0.0.0.0] ? 129.105.49.1
  70.         Subnet mask for the interface [0.0.0.0] ? 255.255.255.0
  71.         Flag Meanings (if set)
  72.             Bit 0 (1h)  - Don't send routing updates out this interface
  73.             Bit 1 (2h)  - Don't listen to routing updates from this interface
  74.             Bit 2 (4h)  - Proxy Arp for all subnets
  75.             Bit 3 (8h)  - Turn off directed broadcasts
  76.             Bit 4 (10h) - Turn off the issuing of ICMP redirects
  77.             Bit 5 (20h) - Broadcast using old (0's) format
  78.         Flags (HEX) for the interface [0H] ? 8
  79.         Routing Metric (HEX) for the interface [1H] ? 1
  80.  
  81.         Configuring an interface
  82.         Address for the interface [0.0.0.0] ? 129.105.2.1
  83.         Subnet mask for the interface [0.0.0.0] ? 255.255.255.0
  84.         Flag Meanings (if set)
  85.             Bit 0 (1h)  - Don't send routing updates out this interface
  86.             Bit 1 (2h)  - Don't listen to routing updates from this interface
  87.             Bit 2 (4h)  - Proxy Arp for all subnets
  88.             Bit 3 (8h)  - Turn off directed broadcasts
  89.             Bit 4 (10h) - Turn off the issuing of ICMP redirects
  90.         Flags (HEX) for the interface [0H] ? B
  91.         Routing Metric (HEX) for the interface [1H] ? 1
  92.     Enter speed for this interface (ex. 96000 192000, ...) [9600] 19200
  93.  
  94.         If you wish to configure static routes do so here.  To stop type a '.'
  95.  
  96.           Flag Meanings (if set)
  97.               Bit 0 (1h)  - Local route, do not propagate it
  98.               Bit 1 (2h)  - Transient route, subject to RIP protocol
  99.  
  100.         Network [0.0.0.0] ? 0.0.0.0
  101.         Gateway [0.0.0.0] ? 129.105.2.2
  102.         Metric (HEX)  [9H] ? 2
  103.         Flags (HEX) [0H] ? 0
  104.  
  105.         Network [0.0.0.0] ? .
  106.  
  107.         If you wish to forward bootp packets please enter the address
  108.           of the address to forward it to.  This address can be a
  109.           directed broadcast.  0.0.0.0  means don't forward
  110.  
  111.         Address to forward bootp packets [0.0.0.0] ? 0.0.0.0
  112.  
  113.         Once PCroute boots up, it sends all log messages to a network
  114.           host running a BSD UNIX syslogd daemon.  To disable
  115.           logging enter 0.0.0.0
  116.  
  117.         Host to send logging info to [0.0.0.0] ? 129.105.35.2
  118.         Mask Meanings (0 = Log, 1 = Don't log)
  119.             Bit 0 (1h)  - System
  120.             Bit 1 (2h)  - Routing
  121.             Bit 2 (4h)  - Monitor
  122.             Bit 3 (8h)  - Localtalk
  123.         Logging mask for this router [0H] ? 0
  124.         There are 8 routing 'levels' supported
  125.             0 - Emergency    1 - Alert    2 - Critical    3 - Error
  126.             4 - Warning      5 - Notice   6 - info        7 - Debug
  127.         Only messages with a level less than the logging level are sent
  128.         Logging level [0H] ? 7
  129.  
  130.     ------------------------------------------------------------------------
  131.     ------------------------------------------------------------------------
  132.  
  133.  
  134. The dialog for the configuration of PC #2 looks like.
  135.     ------------------------------------------------------------------------
  136.         This program creates/edits the pcroute.cfg file
  137.  
  138.         Configuring an interface
  139.         Address for the interface [0.0.0.0] ? 129.105.5.3
  140.         Subnet mask for the interface [0.0.0.0] ? 255.255.255.0
  141.         Flag Meanings (if set)
  142.             Bit 0 (1h)  - Don't send routing updates out this interface
  143.             Bit 1 (2h)  - Don't listen to routing updates from this interface
  144.             Bit 2 (4h)  - Proxy Arp for all subnets
  145.             Bit 3 (8h)  - Turn off directed broadcasts
  146.             Bit 4 (10h) - Turn off the issuing of ICMP redirects
  147.             Bit 5 (20h) - Broadcast using old (0's) format
  148.         Flags (HEX) for the interface [0H] ? 8
  149.         Routing Metric (HEX) for the interface [1H] ? 1
  150.  
  151.         Configuring an interface
  152.         Address for the interface [0.0.0.0] ? 129.105.2.2
  153.         Subnet mask for the interface [0.0.0.0] ? 255.255.255.0
  154.         Flag Meanings (if set)
  155.             Bit 0 (1h)  - Don't send routing updates out this interface
  156.             Bit 1 (2h)  - Don't listen to routing updates from this interface
  157.             Bit 2 (4h)  - Proxy Arp for all subnets
  158.             Bit 3 (8h)  - Turn off directed broadcasts
  159.             Bit 4 (10h) - Turn off the issuing of ICMP redirects
  160.         Flags (HEX) for the interface [0H] ? B
  161.         Routing Metric (HEX) for the interface [1H] ? 1
  162.     Enter speed for this interface (ex. 96000 192000, ...) [9600] 19200
  163.  
  164.         If you wish to configure static routes do so here.  To stop type a '.'
  165.  
  166.           Flag Meanings (if set)
  167.               Bit 0 (1h)  - Local route, do not propagate it
  168.               Bit 1 (2h)  - Transient route, subject to RIP protocol
  169.  
  170.         Network [0.0.0.0] ? 0.0.0.0
  171.         Gateway [0.0.0.0] ? 129.105.5.5
  172.         Metric (HEX)  [9H] ? 9
  173.         Flags (HEX) [0H] ? 2
  174.  
  175.         Network [0.0.0.0] ? 129.105.49.0
  176.         Gateway [0.0.0.0] ? 129.105.2.1
  177.         Metric (HEX)  [9H] ? 2
  178.         Flags (HEX) [0H] ? 0
  179.  
  180.         Network [0.0.0.0] ? .
  181.  
  182.         If you wish to forward bootp packets please enter the address
  183.           of the address to forward it to.  This address can be a
  184.           directed broadcast.  0.0.0.0  means don't forward
  185.  
  186.         Address to forward bootp packets [0.0.0.0] ? 0.0.0.0
  187.  
  188.         Once PCroute boots up, it sends all log messages to a network
  189.           host running a BSD UNIX syslogd daemon.  To disable
  190.           logging enter 0.0.0.0
  191.  
  192.         Host to send logging info to [0.0.0.0] ? 129.105.35.2
  193.         Mask Meanings (0 = Log, 1 = Don't log)
  194.             Bit 0 (1h)  - System
  195.             Bit 1 (2h)  - Routing
  196.             Bit 2 (4h)  - Monitor
  197.             Bit 3 (8h)  - Localtalk
  198.         Logging mask for this router [0H] ? 0
  199.         There are 8 routing 'levels' supported
  200.             0 - Emergency    1 - Alert    2 - Critical    3 - Error
  201.             4 - Warning      5 - Notice   6 - info        7 - Debug
  202.         Only messages with a level less than the logging level are sent
  203.         Logging level [0H] ? 7
  204.  
  205.     ------------------------------------------------------------------------
  206.  
  207.  
  208.         The configuration procedure first describes each interface in the
  209.     router, giving its IP address and network mask.  The flags should 
  210.     normally be 0, but if you have any old (pre 1988) software), you should
  211.     probably set flag bit 3 and bit 4 (in this example we set bit 3).  
  212.     
  213.         Next we set the routes.  In this example we rely on RIP to provide 
  214.     routing information to hosts, however, we choose not to use rip
  215.     for the serial line (because of the overhead).  Thus we use static
  216.     routing there.  Note that this is only reasonable if there are only
  217.     a small (and not growing) number of nets on the 'Network A' side of
  218.     the slip line.  If this is not the case, RIP should be used, regardless
  219.     of the overhead. (which really isn't that much anyway)
  220.  
  221.     Thus in our configuration PC#1 is given a default route that it
  222.     will propagate to network A via RIP, but not to the slip line.  PC#2
  223.     is also given a default route, but unlike PC#1's default route,
  224.     this route has bit 1 set which makes it expire in 90 seconds.  This 
  225.     route is useful so that the PC#2 can reach the logging host even before it
  226.     has received RIP information from any host (presumably host 129.105.5.5).
  227.     PC#2 is also given a static route that routes packets destined for 
  228.     network A to PC#1.  This route is propagated on network B via RIP
  229.     (but again not the SLIP line).  Note that if more networks are added 
  230.     on the 'network A' side of the SLIP line, more routes will have to
  231.     be added the PC#2.  It is VERY easy to forget such routes, and network
  232.     problems will result.  Thus if that side of the network is likely to grow,
  233.     it is STRONGLY suggested to run RIP on the SLIP line and let it take
  234.     care of it.
  235.         Since we do not need BOOTP forwarding, we disable it by entering
  236.     the address 0.0.0.0.
  237.  
  238.         Finally we set the logging information.  We set the logging host
  239.     to 129.105.35.2 and we set the logging filters to send everything that
  240.     is not a debugging message.  This is a good setting for a production
  241.     machine.
  242.  
  243.         Since in this example we are assuming that RIP is being used, we
  244.     should make sure that 129.105.5.5 is generating RIP packets.
  245.  
  246.         Finally we should log on to the logging host and (assuming it is
  247.     a BSD 4.3 system), and edit the /etc/syslog.conf file so it included
  248.     the following line
  249.  
  250.             local0.debug                        /usr/adm/pcroute
  251.  
  252.     Note that in this example we log all messages to the file /usr/adm/pcroute.
  253.     If you want them to go elsewhere consult the UNIX manual and change
  254.     /etc/syslog.conf accordingly.  Don't forget to kill -HUP the syslogd
  255.     process, to tell it that the configuration file has changed.
  256.  
  257. Step 4 Running and Testing.  
  258.  
  259.         When config completes, insert the floppies into the PC that the
  260.     where configured for and boot both machines.   Log on to some host on 
  261.     net A and try to PING 129.105.49.1.   Also log on to net B and try 
  262.     pinging 129.105.5.3.  If these work, try pinging 129.105.49.1 from 
  263.     net B and 129.105.5.3 from net A.  If these work try telneting from 
  264.     the host on net A to the host on net B.  Try telneting from net A 
  265.     to arbitrary hosts.  Finally log on to the logging host and check to 
  266.     see if both PCrouters sent the message that it is 'coming up' to the 
  267.     logging host.  If all these tests succeed, congratulations!  you have 
  268.     installed your first PCrouters.
  269.  
  270.         If some of these tests fail, refer to the document TROUBLE.DOC
  271.     and follow the instructions there.
  272.  
  273.  
  274.  
  275.